<template>
  <div>
    <we-nav-bar></we-nav-bar>
    <div v-for="(item, index) in reportList" :key="index">
      <van-cell-group>
        <van-cell
          :title="item.reportName"
          :value="item.reportTime"
          is-link
          @click="onClickItem(item)"
        />
      </van-cell-group>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      reportList: [],
      receiveData: [],
    };
  },

  created() {
    this.receiveData = this.$route.query;
    const axios = require("axios");
    axios
      .post(
        // "/general/tp/public/index.php?s=yongyao/Report/GetLisReport",
        "/app/wechat/checking/GetReport/mid/2.html",
        this.receiveData
      )
      .then(({ data: res }) => {
        this.reportList = res.data.list;
      });
  },

  methods: {
    onClickItem(item) {
      this.$router.push({
        path: "/wechat/nucleic-acid-report-query/image-list",
        query: item,
      });
    },
  },
};
</script>

<style scoped>
.txt {
  display: flex;
  justify-content: space-around;
}
</style>
